package com.bzkj.web.controller.ncc;

import com.bzkj.basicinfo.service.ncc.NccMaterialAttributeService;
import com.bzkj.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author swj
 * @desc
 */
@RestController
@RequestMapping("/ncc")
public class NccMaterialAttributeController {
    @Autowired
    private NccMaterialAttributeService nccMaterialAttributeService;
    /**
     * 定时同步生产厂商信息
     * @return
     */
    @GetMapping("jobPdMethod")
    public R jobPdMethod()
    {
        return nccMaterialAttributeService.jobBdDefDoclistMethodExecute();
    }
    /**
     * 定时同步生产厂商信息
     * @return
     */
    @GetMapping("jobPkMethod")
    public R jobPkMethod()
    {
        return nccMaterialAttributeService.jobBdDefDocMethodExecute(false);
    }
}
